package base;

class Tree{
	int data;
	Tree left;
	Tree right;
}

public class LinkedTree {
	
	public void inOrder(Tree root){
		if(root!= null){
			if(root.left!= null){
				inOrder(root.left);
			}
			System.out.println(root.data);
			if(root.right!= null){
				inOrder(root.right);
			}
		}
	}
	
	public void postOrder(Tree root){
		if(root!=null){
			if(root.left!=null){
			postOrder(root.left);
			}
			if(root.left!=null){
			postOrder(root.right);
			}
			System.out.println(root.data);
			
		}
	}
	
	

	public static void main(String[] args) {
		
	}

}
